/*
	This file is part of GTimer.

    GTimer is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License\.

    GTimer is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with GTimer. If not, see <http://www.gnu.org/licenses/>.
	
	Copyright 2012 Muhammad Ghareeb Sideek
	Contact: MGhareeb64@gmail.com
 */

package com.gsourcecode.timer;

import java.io.Serializable;

public class Settings implements Serializable {
	private static final long serialVersionUID = -1325135554667470299L;
	private static Settings settings;

	public long vibDur;
	public float beepVol, ttsRate, ttsPitch;
	public boolean isVib, isBeep, isTTS, isWakeLock;
	public int skip;

	private Settings() {
		isVib = true;
		vibDur = 1000;
		isBeep = true;
		beepVol = 1;
		isTTS = true;
		ttsRate = 1;
		ttsPitch = 1;
		isWakeLock = true;
		skip = 1;
	}

	public static Settings get() {
		if (settings == null)
			settings = new Settings();
		return settings;
	}

	public static void set(Settings settings) {
		Settings.settings = settings;
	}
}
